﻿using Abp.AspNetCore.Mvc.Controllers;
using Abp.IdentityFramework;
using AbpProjectTemplate.Utilities.Theading;
using Microsoft.AspNetCore.Identity;

namespace AbpProjectTemplate.Web.Controllers
{
    public abstract class AppControllerBase : AbpController
    {
        /// <summary>
        /// 并发控制器
        /// </summary>
        public SemaphoreSlimManager SemaphoreSlimManager { get; set; }
        protected AppControllerBase()
        {
            this.LocalizationSourceName = AppConsts.LocalizationSourceName;
        }

        protected void CheckErrors(IdentityResult identityResult)
        {
            identityResult.CheckErrors(this.LocalizationManager);
        }
    }
}

